home *** CD-ROM | disk | FTP | other *** search
- on MapMenuSetup
- mapList = EMPTY
- newLine = 1
- repeat with n = 1 to 200
- case the machineType of
- 256:
- mapName = getNthFileNameInFolder(the pathname & "..\MTdata\", n)
- otherwise:
- mapName = getNthFileNameInFolder(the pathname & ":MTdata:", n)
- end case
- if mapName = EMPTY then
- exit repeat
- end if
- case the machineType of
- 256:
- mapFilename = the pathname & "..\MTdata\" & mapName
- otherwise:
- mapFilename = the pathname & ":MTdata:" & mapName
- end case
- test = getNthFileNameInFolder(mapFilename, 1)
- if test = EMPTY then
- mapFile = new(xtra("fileIO"))
- openFile(mapFile, mapFilename, 1)
- if status(mapFile) = 0 then
- fileType = getFinderInfo(mapFile)
- if (fileType contains "MMAP") or (mapName contains ".mtg") then
- put mapName into line newLine of mapList
- newLine = newLine + 1
- end if
- closeFile(mapFile)
- end if
- mapFile = 0
- end if
- end repeat
- return mapList
- end
-